/**
 * 售后管理路由
 */
export default [
  {
    path: '/aftersales',
    meta: { requiresAuth: true },
    children: [
      {
        path: '',
        redirect: '/aftersales/list'
      },
      {
        path: 'list',
        name: 'AftersalesList',
        component: () => import('@/views/aftersales/AftersalesList.vue'),
        meta: { title: '售后单管理' }
      },
      {
        path: 'approval',
        name: 'AftersalesApproval',
        component: () => import('@/views/aftersales/AftersalesApproval.vue'),
        meta: { title: '售后审批' }
      },
      {
        path: 'statistics',
        name: 'AftersalesStatistics',
        component: () => import('@/views/aftersales/AftersalesStatistics.vue'),
        meta: { title: '售后统计' }
      },
      {
        path: 'settings',
        name: 'AftersalesSettings',
        component: () => import('@/views/aftersales/AftersalesSettings.vue'),
        meta: { title: '售后设置' }
      }
    ]
  }
]

